package com.market.service;

import com.market.entity.Classes;

import java.util.List;

public interface ClassesService {
    /**
     * 查询
     * @param namesOrId
     * @return
     */
    List<Classes> searchClasses(String namesOrId);

    /**
     * 添加类别
     * @param name
     * @return
     */
    int add(String name);

    /**
     * 添加类别
     * @param classes
     * @param name
     * @return
     */
    int addSubName(Classes classes,String name);

    /**
     * 修改类别
     * @param classesId
     * @param classesName
     * @return
     */
    int chagerSub(Integer classesId,String classesName);

    /**
     * 删除类别
     * @param classesId
     * @return
     */
    int deleteClasses(Integer classesId);
}
